﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestSACCCalculator.aspx.cs" Inherits="CRMWeb.Pages.Test.SACCCalculator" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="SACCForm" runat="server">
        <div>
            <%--<asp:LinkButton ID="lbtnGoback" runat="server" PostBackUrl="~/Pages/AMSMainPage.aspx">Go Back AMS Main page </asp:LinkButton>--%>
            
            <asp:Label ID="Label1" runat="server" Text="Loan Amount:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtLoanAmount" runat="server" Width="150px">5000</asp:TextBox>
            &nbsp;
            <br />
            <asp:Label ID="Label3" runat="server" Text="Establishment Fee:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtEstbFee" runat="server" Width="50px">20</asp:TextBox>
            <asp:Label ID="Label7" runat="server" Text="%" Width="10px"></asp:Label>
            <br />
            <asp:Label ID="Label14" runat="server" Text="Monthly Fee:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtMnthFee" runat="server" Width="50px">4</asp:TextBox>
            <asp:Label ID="Label15" runat="server" Text="%" Width="10px"></asp:Label>

            <br />
            <asp:Label ID="Label4" runat="server" Text="Settle Date:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtFirstDate" runat="server" Width="150px">2013-06-29</asp:TextBox>

            <br />
            <asp:Label ID="Label6" runat="server" Text="1st Payment Date:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtFirstPaymentDate" runat="server" Width="150px">2013-7-7</asp:TextBox>
            <br />
            <asp:Label ID="Label9" runat="server" Text="Repayment by:" Width="150px"></asp:Label>
            <asp:DropDownList ID="ddlRepayment" runat="server" AutoPostBack="True">
                <asp:ListItem Selected="True" Value="7">Week</asp:ListItem>
                <asp:ListItem Value="14">Fortnight</asp:ListItem>
            </asp:DropDownList>

            <br />
            <asp:Label ID="Label2" runat="server" Text="" Width="150px"></asp:Label>
            <asp:TextBox ID="txtTerm" runat="server" Width="150px">8</asp:TextBox>

            <br />
            <br />
            <br />
            <asp:Label ID="Label16" runat="server" Text="Total Establishment Fee:" Width="160px" ForeColor="Red"></asp:Label>
            <asp:TextBox ID="txtTotEstbFee" runat="server" Width="100px" ForeColor="Red"></asp:TextBox>
            <br />
            <asp:Label ID="Label5" runat="server" Text="Total Monthly Fee:" Width="160px" ForeColor="Red"></asp:Label>
            <asp:TextBox ID="txtTotMnthFee" runat="server" Width="100px" ForeColor="Red"></asp:TextBox>
            <br />
            <asp:Label ID="Label8" runat="server" Text="Total Fee:" Width="160px" ForeColor="Red" Font-Bold="True"></asp:Label>
            <asp:TextBox ID="txtTotFee" runat="server" Width="100px" ForeColor="Red" Font-Bold="True"></asp:TextBox>
            <br />
            <asp:Label ID="lblSACC" runat="server" Text="Payment schedule:" Width="250px"></asp:Label>
            <asp:Button ID="btnCalculateByTerm" runat="server" Text="Calculate (by Term)" Width="200px" OnClick="btnCalculateByTerm_Click" />
            &nbsp;
            <br />

        </div>
        <p>
            &nbsp;
        </p>

        <asp:GridView ID="dvSchedule" runat="server">
        </asp:GridView>

    </form>
</body>
</html>
